<?php


namespace app\mobile\controller\base;


use app\BaseController;
use app\mobile\service\base\StudentPaperService;
use think\response\Json;

class StudentPaper extends BaseController
{
    /**
     * 创建
     * @param StudentPaperService $studentPaperService
     * @return Json
     */
    public function create(StudentPaperService $studentPaperService):Json
    {
        return $studentPaperService->save(request()->param());
    }

    /**
     * 更新
     * @param StudentPaperService $studentPaperService
     * @return Json
     */
    public function update(StudentPaperService $studentPaperService):Json
    {
        return $studentPaperService->update(request()->param());
    }

    /**
     * 详情
     * @param StudentPaperService $studentPaperService
     * @return Json
     */
    public function details(StudentPaperService $studentPaperService):Json
    {
        return $studentPaperService->details(request()->param());
    }

    /**
     * 详情
     * @param StudentPaperService $studentPaperService
     * @return Json
     */
    public function ranking(StudentPaperService $studentPaperService):Json
    {
        return $studentPaperService->ranking(request()->param());
    }
}